Skip to content

adamhoek/Pentesting

Repository files navigation

Pentesting

Kali vs WP v1.0

Project 7 - WordPress Pentesting

Time spent: 5 hours spent in total

Objective: Find, analyze, recreate, and document five vulnerabilities affecting an old version of WordPress

Pentesting Report

  1. CVE-2016-6634
  • Summary: Input Validation Error
    • Vulnerability types: Unspecified Reflected Cross Site Scripting Vulnerability
    • Tested in version: 4.2
    • Fixed in version: 4.5
  • GIF Walkthrough:

- [ ] Steps to recreate: To exploit this issue an attacker must entice an unsuspecting victim to open a malicious URI: http://wpdistillery.vm/?s=%3Cscript%3Ealert%28%27XSS%21%27%29%3B%3C%2Fscript%3E The reflected query is not sanitized or rejected
  1. CVE 2016-1564
  • Summary: Multiple cross-site scripting (XSS) vulnerabilities in wp-includes/class-wp-theme.php in WordPress before 4.4.1 allow remote attackers to inject arbitrary web script or HTML via a (1) stylesheet name or (2) template name to wp-admin/customize.php.
    • Vulnerability types: A3: Cross-Site Scripting (XSS)
    • Tested in version: 4.2
    • Fixed in version: 4.4.1
  • GIF Walkthrough:

- [ ] Steps to recreate: Get a wp admin to click a malicious link, which appears to change theme: http://wpdistillery.vm/wp-admin/customize.php?theme=
  1. CVE-2017-5611 - [ ] Summary: SQL injection vulnerability
    • Vulnerability types: Input Validation Error
    • Tested in version: 4.2
    • Fixed in version: 4.7.2 - [ ] GIF Walkthrough: Week 7.3 CVE 2017-5611 SQLi.gif - [ ] Steps to recreate: Entering the following string: "or"1"="1 into the search box produces the sample page, not the expected 'Nothing Found' message.

Assets

List any additional assets, such as scripts or files

Resources

GIFs created with LiceCap (http://www.cockos.com/licecap/).

Notes

Testing was accomplished with Wordpress running version 4.2 on virtualbox. Kali Linux was used for wpscan.

License

Copyright [2018] [Adam Hoek]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Releases

No releases published

Packages

No packages published